# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=py3-prawcore
pkgver=1.4.0
pkgrel=0
pkgdesc="a low-level communication layer for PRAW 4+"
options="net" # To fetch unpackaged test dependencies
url="https://github.com/praw-dev/prawcore"
arch="noarch"
license="BSD-2-Clause"
depends="py3-setuptools py3-requests"
checkdepends="py3-mock py3-betamax py3-betamax_matchers py3-betamax_serializers py3-testfixtures"
source="$pkgname-$pkgver.tar.gz::https://github.com/praw-dev/prawcore/archive/v$pkgver.tar.gz"
builddir="$srcdir/prawcore-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="4fda3cb7e403a958ec8ed25faf7d9ca23c8bfdf6fed7c47a8cfafac37314cf821dcba3523b0d2b8a879b4f010287c2c6eb627c18af0c61952b70b12cd335ed10  py3-prawcore-1.4.0.tar.gz"
